/* 顶部信息栏样式 */
.top-bar {
    background-color: #d7423a;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.language-switcher a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.language-switcher a:hover {
    opacity: 0.8;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

#topInformationBar {
     max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

#navigationBar {
   max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.container {
   max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    color: #d7423a;
    font-weight: 600;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item.active a,
.nav-item:hover a {
    background-color: #f5c442;
    color: #333;
}

.dropdown {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-menu li a {
    padding: 15px 20px;
    display: block;
    color: #333;
}

.dropdown-menu li a:hover {
    background-color: #f5c442;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.user-actions {
    margin-left: auto;
}

.user-icon {
    font-size: 24px;
    color: #d7423a;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 轮播图样式 */
.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-slider {
    position: relative;
    height: 50vh;
    min-height: 300px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #d7423a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #b7362e;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots span.active {
    background-color: white;
}

/* 功能模块样式 */
.features {
    padding: 60px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #f5c442;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #f5c442;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #333;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* 功能卡片区域 */
.sub-features {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.sub-feature-cards {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sub-feature-cards .feature-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
}

@media (max-width: 768px) {
    .sub-feature-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* 推荐内容样式 */
.recommendations {
    padding: 60px 0;
    background-color: #fff;
}

.recommendation-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: #f5c442;
    border: none;
    border-radius: 20px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: #d7423a;
    color: white;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card h3 {
    font-size: 20px;
    margin: 0 0 15px;
}

.card-content h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.hidden {
    display: none;
}

/* 页脚样式 */
.site-footer {
    background-color: #2c2c2c;
    color: #ccc;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f5c442;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

.social-icons a {
    color: #ccc;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f5c442;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 14px;
    color: #888;
}

.copyright a {
    color: #ccc;
    text-decoration: none;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: #d7423a;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.back-to-top i {
    font-size: 20px;
}

.back-to-top:hover {
    background-color: #b7362e;  /* 悬停时的颜色 */
}
/* 各大模块之间的垂直间距 */
.top-bar {
    margin-bottom: 20px;
}

.navbar {
    margin-bottom: 30px;
}

.hero {
    margin-bottom: 100px;
}

.features,
.sub-features,
.recommendations,
.map-section {
    margin-bottom: 80px;
}

.site-footer {
    margin-top: 60px;
}

/* 主体内容容器 */
.main-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.intro-section,
.map-section,
.filter-section,
.card-grid,
.video-section {
    margin-bottom: 60px;
}

/* 防止页面太短 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#container {
    flex: 1;
}
.feature-card full-width {
    width: 100%; /* 使卡片占据整个容器宽度 */ 
}
#map-container {
    width: 100%;
    height: 400px;
    z-index: 1;
}
main-content container {
    padding-top: 40px; /* 增加顶部间距 */
    padding-bottom: 40px; /* 增加底部间距 */
     max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 1500px;
}

/* 介绍区域 */
.intro-section {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.intro-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 子标题 */
.section-subtitle {
    text-align: left;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #f5c442;
}

/* 筛选器样式 */
.filter-section {
    margin-bottom: 40px;
}

.filters select {
    padding: 10px 15px;
    margin-right: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* 视频区域 */
.video-section {
    margin-top: 60px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

#all{
    width: 100%;
    height: 1500px;
}

/* 卡片布局 */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* 详情页封面图 */
.hero-banner {
    margin-bottom: 30px;
}

.detail-header .text-muted {
    color: #666;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    color: white;
}

.primary-bg {
    background-color: #d7423a;
}

.secondary-bg {
    background-color: #f5c442;
}

.detail-content h3 {
    margin-top: 30px;
}

.map-section {
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    background-color: #d7423a;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.btn:hover {
    background-color: #b5362e;
}

/* 轮播图 */
.swiper-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分类卡片 */
.category-card {
    text-align: center;
}
.category-card h4 {
    margin-top: 15px;
}
.category-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* 时间轴 */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #d7423a;
    left: 50%;
}
.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
}
.timeline-year {
    width: 80px;
    font-weight: bold;
    color: #d7423a;
}
.timeline-content {
    margin-left: 20px;
}

/* 用户评论 */
.comment-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.btn-secondary {
    margin-top: 10px;
    background-color: #f5c442;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}
.btn-secondary:hover {
    background-color: #eac13f;
}

/* 地图容器 */
#food-map {
    margin-bottom: 40px;
}

/* 美食卡片样式 */
.food-cards .card {
    background-color: #fffaf0;
}
.food-cards .card img {
    height: 180px;
    object-fit: cover;
}
.food-cards .card h3 {
    color: #d7423a;
}
.btn.btn-primary {
    background-color: #d7423a;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    display: inline-block;
    margin-top: 10px;
    border-radius: 4px;
}
.btn.btn-primary:hover {
    background-color: #b5362e;
}

